4.11 GetCertificate

string GetCertificate(int certificateId);

The GetCertificate method collects a CRT “Software Certificate” P7 for the specified request, for use as a .CER/.CRT certificate.

4.11.1 Inputs

Class

Field

Data Type

Description

Allow Null?

 

 

 

 

No

 

certificateId

int

The Certificate ID in the MyID Certificates table.

No

4.11.2 Output

The output is a string containing the P7 data, in Base64, for the Certificate Request. Any failures to create this request will result in an exception being thrown. Possible error scenarios are:

  • Certificate not found

  • Certificate not ready

  • Certificate request failed